package com.ruoyi.jiaofu.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 家长的一封信对象 ddt_jiaofu_letter
 *
 * @author ruoyi
 * @date 2024-05-26
 */
@Setter
@Getter
@ExcelIgnoreUnannotated
@ColumnWidth(20)
public class DdtJiaofuLetter extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 商户Id
     */
    @ExcelProperty(value = "商户Id")
    private Long trainingSchoolId;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String picUrl;

    /**
     * 正文
     */
    @ExcelProperty(value = "正文")
    private String content;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "创建时间")
    private Date addTime;

    /**
     * 逻辑删除
     */
    @ExcelProperty(value = "逻辑删除")
    private Integer deleted;

}
